package main

import (
	"os"
	"parser/engine"
	"parser/persist"
	"parser/scheduler"
	"parser/zhenai/parder"
)

func main() {

	os.Setenv("HTTP_PROXY", "http://127.0.0.1:8888")
	os.Setenv("HTTPS_PROXY", "https://127.0.0.1:8888")
	engine.QueuedScheduler{
		Scheduler:   &scheduler.QueuedScheduler{},
		WorkerCount: 10,
		ItemSaver:persist.ItemSaver(),
	}.Run(engine.Request{
		Url:        "http://www.zhenai.com/zhenghun",
		ParserFunc: parder.ParserCityList,
	})

}